﻿using Avalonia.Controls;
using Avalonia.Interactivity;
using LiveHub.AvaloniaApp.Views;

namespace LiveHub.AvaloniaApp.Pages;

public partial class SettingView : UserControl
{
    public SettingView()
    {
        InitializeComponent();
    }

    private void LogoutClick(object? sender, RoutedEventArgs e)
    {
        var view = ViewOpera.GetView<MainWindow>(this);
        if(view == null)return;
        view.ChangeItem(new LoginView());
    }
}